import 'package:json_annotation/json_annotation.dart';

part 'config_model.g.dart';

@JsonSerializable()
class ConfigModel extends Object {
  @JsonKey(name: 'art_comment_switch')
  Art_comment_switch artCommentSwitch;

  @JsonKey(name: 'art_consume_coin_number')
  Art_consume_coin_number artConsumeCoinNumber;

  ConfigModel(
    this.artCommentSwitch,
    this.artConsumeCoinNumber,
  );

  factory ConfigModel.fromJson(Map<String, dynamic> srcJson) =>
      _$ConfigModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$ConfigModelToJson(this);
}

@JsonSerializable()
class Art_comment_switch extends Object {
  @JsonKey(name: 'name')
  String name;

  @JsonKey(name: 'value')
  bool value;

  Art_comment_switch(
    this.name,
    this.value,
  );

  factory Art_comment_switch.fromJson(Map<String, dynamic> srcJson) =>
      _$Art_comment_switchFromJson(srcJson);

  Map<String, dynamic> toJson() => _$Art_comment_switchToJson(this);
}

@JsonSerializable()
class Art_consume_coin_number extends Object {
  @JsonKey(name: 'name')
  String name;

  @JsonKey(name: 'value')
  int value;

  Art_consume_coin_number(
    this.name,
    this.value,
  );

  factory Art_consume_coin_number.fromJson(Map<String, dynamic> srcJson) =>
      _$Art_consume_coin_numberFromJson(srcJson);

  Map<String, dynamic> toJson() => _$Art_consume_coin_numberToJson(this);
}
